﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HMIS.FrameWork;
using HMIS.Infrastructure.Core;
using HMIS.FrameWork.DomainBase;

namespace HMIS.Infrastructure.Facade
{
	public interface IDictionaryFacade : IDomainFacade
	{
		//保存字典
		void SaveOrUpdate(Dictionary entity);
		//获取字典
		Dictionary GetDictionary(string id);
		
		Dictionary LoadDictionary(string id);
		//删除字典
		void DeleteDictionary(string id);
		//获取字典列表By字典类别Id
		IList<Dictionary> GetPlistByCategoryId(string id, int start, int limit, string sort, string dir, List<DataFilter> filters, out long total);

		IList<Dictionary> GetPlistByCategoryCode(string code, string query, int start, int limit, string sort, string dir, List<DataFilter> filters, out long total);

		IList<Dictionary> GetPlistAll();

		bool IsFieldExist(string fieldName, string fieldValue, string id);
		
	}
}
